#ifndef FILESELECTION_H
#define FILESELECTION_H
#include "StompedReality/Core/FileSystem.h"
#include "StomperLib/ToolElement.h"
namespace StomperLib {
namespace Controls {
class FileTree;
}
namespace Elements
{
class FileSelection : public StomperLib::ToolElement
{
 public:

  FileSelection( StomperLib::BaseLayout* layout, StompedReality::IGame* game );
  ~FileSelection( );

  // ToolElement implementations
  void Draw( );
  bool Update( );

  // events
  Gwen::Event::Caller onFileChanged;
  Gwen::Event::Caller onFileAdded;

  void RefreshTree( );
  void OnModified( Gwen::Event::Info info );
  void OnSaved( Gwen::Event::Info info );

 private:

  // private functions
  void CreateGui( StomperLib::BaseLayout* layout );

  // events
  void OnFileSelectionChange( Gwen::Event::Info info );

  void OnFileAdded( Gwen::Event::Info info );

 private:

  StomperLib::Controls::FileTree* m_TextureTree;
};

}
}

#endif // ifndef FILESELECTION_H